const request = require('request');

exports.proxyInfo = function (ip,callback) {
    request.get('http://ip-api.com/json/' + ip, {
        json: true,
        headers: {
            Accept: 'application/json'
        }
    }, async (err, res, body) => {
        await callback(ip,body.timezone,body.lat,body.lon,body.countryCode,body.regionName)
    });
}

